
#define SCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define Font(x)                         [UIFont systemFontOfSize : x]

#define RGBCOLOR(r, g, b)               [UIColor colorWithRed : (r) / 255.0f green : (g) / 255.0f blue : (b) / 255.0f alpha : 1]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

#define font12 [UIFont systemFontOfSize:12]
#define font13 [UIFont systemFontOfSize:13]
#define font14 [UIFont systemFontOfSize:14]
#define font15 [UIFont systemFontOfSize:15]
#define font16 [UIFont systemFontOfSize:16]
#define font17 [UIFont systemFontOfSize:17]
#define font18 [UIFont systemFontOfSize:18]
#define bgVCcolor [UIColor colorWithRed:235.f/255.f green:235.f/255.f blue:244.f/255.f alpha:1]
#define blackColor51 [UIColor colorWithRed:51.f/255.f green:51.f/255.f blue:51.f/255.f alpha:1]
#define blackColor102 [UIColor colorWithRed:102.f/255.f green:102.f/255.f blue:102.f/255.f alpha:1]
#define blackColor153 [UIColor colorWithRed:153.f/255.f green:153.f/255.f blue:153.f/255.f alpha:1]
//宏定义一个警告框
#define ALERTSHOW(msg)   UIAlertView *alertView = [[UIAlertView    alloc] initWithTitle:@"提示" message:msg delegate:nil cancelButtonTitle:nil otherButtonTitles:@"确定", nil]; \
[alertView show];


//内网连接地址
//#define SERVER_ADDRESS @"http://zh.xyh.cn:8081/api/"//服务器地址
//#define BESTHOST @"http://zh.xyh.cn:8081"//基本地址

//外网测试连接地址
//#define SERVER_ADDRESS @"http://zh.xinyonghang.com/api/"//服务器地址
//#define BESTHOST @"http://zh.xinyonghang.com"//基本地址








//外网新配地址
#define SERVER_ADDRESS @"http://zh.xinyonghang.net/api/"//服务器地址
#define BESTHOST @"http://zh.xinyonghang.net"//基本地址

//公网环境
//#define SERVER_ADDRESS @"http://yaohe.xinyonghang.com/api/"//服务器地址
//#define BESTHOST @"http://yaohe.xinyonghang.com"//基本地址


#define APPHOMEAPI @"AppOpenHome/PostQueryHome?from=app"//首页API
#define ASKFORLOCATION @"AppUserCenter/PostAppAreaZone?from=app"//首页请求定位接口

//登录注册需要用到的地址、字段
#define REGISTAPI @"AppLoginRegister/PostRegister?from=app"//注册接口
#define LOGINAPI @"AppLoginRegister/PostLogin?from=app"//登录接口

#define MOBILE @"MOBILE"//登录名，为手机号码格式 string
#define RECOMMEND_MOBILE @"RECOMMEND_MOBILE"//推荐人手机号string
#define PASSWORD @"PASSWORD"//登录密码string
#define IMEI @"IMEI"//手机IMEI号吗

//发送验证码
#define SENDMESSAGEAPI @"AppLoginRegister/PostSendResetPwdCheckCode?from=app"//用于服务器给手机发送短信的接口

#define FINDPASSWORD @"AppLoginRegister/PostValidateResetPwdCheckCode?from=app"//找回密码手机号和验证码验证接口
#define CHECK_CODE @"CHECK_CODE"//手机验证码，由用户输入string

#define RESETPED @"AppLoginRegister/PostResetPwd?from=app"

//求购信息列表
#define PURCHASEINFO @"AppPurchaseInfo/PostQueryPurchaseInfo?from=app"

//请求条数
#define TOTALNUM @"AppPurchaseInfo/PostQueryTotalNum?from=app"

//订单列表
#define ORDERLIST @"AppSaleOrder/PostQuerySaleOrder?from=app"


//个人中心
#define USERCENTER @"AppShoppingCart/PostUserCenter?from=app"


//检查用户权限
#define  POSTCHECK  @"AppUserCenter/PostCheckPermission?from=app"

//获取消息

#define  MESAGENOTI @"AppUserCenter/PostQueryNotifyInfo?from=app"

//删除消息
#define   DELETERECORD @"AppUserCenter/PostDeleteRecord?from=app"

//检测版本更新
#define  BANBEN @"AppUserCenter/PostQueryVersionInfo?from=app"

//申请质检
#define    POSTLOADQUALITY   @"AppSaleOrder/PostLoadQualityReport?from=app"

#define    SHAREPOINT    @"AppPointInfo/PostAddSharePoint?from=app"

//现货列表数据
#define  BINDPRODUCT  @"AppShop/BindProductList?from=app"

//现货详情数据
#define ProductDetail @"AppShoppingCart/PostProductDetail?from=app"

//现货筛选条件
#define  FILTEROPTIONS  @"AppShop/QueryFilterOptions?from=app"

//根据地区省份获取城市 用于判断公司是否被锁定
#define  ContainCity  @"AppUserCenter/PostQueryCityByProvice?from=app"

//获取公司信息
#define  COMPANYINFO @"AppUserCenter/PostQueryCompanyInfo?from=app"

//获取公司职员信息
#define   PEOPLEINF @"AppUserCenter/PostQueryStaffInfoDetail?from=app"

//删除职员
#define DELETEPEOPLE @"AppUserCenter/PostUserUnbindCompany?from=app"

//加入购物车
#define POSTADDPRODUCT @"AppShoppingCart/PostAddProduct?from=app"

//购物车列表
#define SHOPPINGCART @"AppShoppingCart/PostStockProductList?from=app"

//购物车中移除商品
#define  DELETEPRODUCT @"AppShoppingCart/PostDeleteProduct?from=app"

//改变购物车数量
#define CHANGEPRODUCT @"AppShoppingCart/PostChangeProductQuantity?from=app"

//获取短驳费 出库费等
#define GOSTOTHERMONEY @"AppShoppingCart/PostGetOtherMoney?from=app"


//获取优惠券
#define COUNPONLIST  @"AppShoppingCart/PostCouponList?from=app"

//获取优惠券金额
#define GetDiscountMoney  @"AppShoppingCart/PostGetDiscountMoney?from=app"


//确认订单
#define SUREORDER  @"AppShoppingCart/PostOrderComfirm?from=app"


//判断是否开通资金账户
#define ISFOUND  @"AppShoppingCart/PostCheckMemberAccount?from=app"


//获取 需要支付的金额 以及 账户余额
#define NEEDPAYMONEY @"AppShoppingCart/PostNeedPayMoney?from=app"

//支付
#define PAYORDER @"AppShoppingCart/PostPayOrder?from=app"

//获取全部订单列表
#define GETORDERLIST @"AppShoppingCart/PostGetOrderList?from=app"

//取消订单
//无效一条意向单
#define CANCELORDER @"AppShoppingCart/PostInvalidIntentOrder?from=app"


//开通资金账户
#define REGISTFINANCE @"AppShoppingCart/PostRegistFinanceAccount?from=app"

//待支付订单
#define NeedPayOderlist @"AppShoppingCart/PostNeedPayOrderList?from=app"

//待支付详情页
#define NEEDPAYORDERDETAIL @"AppShoppingCart/PostNeedPayOrderDetail?from=app"

//待还款订单
#define QueryRefundOrders @"AppShoppingCart/PostQueryRefundOrders?from=app"

//待还款详情
#define RefundOrdersDetail @"AppShoppingCart/PostQueryRefundOrdersDetail?from=app"


//获取订单详情
#define ORDERDETAIL @"AppShoppingCart/PostSaleOrderDetail?from=app"

//检查货品库存
#define CheckUsebleQuantity @"AppShoppingCart/PostQueryCheckUsebleQuantity?from=app"

//账户收支明细
#define QueryAcountLog  @"AppShoppingCart/PostQueryAcountLog?from=app"

//银行账户
#define BankAccountInfo @"AppShoppingCart/PostLoadBankAccountInfo?from=app"


//签到送积分
#define  PostSignIn  @"AppPointInfo/PostSignIn?from=app"

//获取积分记录
#define  IntegralRecords  @"AppPointInfo/QueryUserPointDetail?from=app"

//获取短信验证码
#define PostSendMobileCode  @"AppShoppingCart/PostSendMobileCode?from=app"


//修改支付密码
#define PostChangePayPwd @"AppShoppingCart/PostChangePayPwd?from=app"


//求购成单量统计详情
#define QueryPurchaseStatisticsDetail @"AppPurchaseInfo/QueryPurchaseStatisticsDetail?from=app"

//成单量统计 按日统计
//#define QueryUserSuccessMall @"AppPurchaseInfo/PostQueryUserSuccessMall?from=app"

//环比数据统计（新）
#define PostQueryUserSurroundSuccessMall @"AppPurchaseInfo/PostQueryUserSurroundSuccessMall?from=app"

//获取注册验证码
#define PostSendRegisterCheckCode @"AppLoginRegister/PostSendRegisterCheckCode?from=app"

//模糊查找公司名称
#define PostlikelyCompanyName @"AppCompanyRegist/PostlikelyCompanyName?from=app"

//APP用户注册 返回信息增加两个字段
#define PostRegister @"AppLoginRegister/PostRegister?from=app"

//申请加入公司接口
#define PostApplyForCompany @"AppUserCenter/PostApplyForCompany?from=app"

//获取备注公司名称
#define PostQueryRemarkName @"AppUserCenter/PostQueryRemarkName?from=app"

//获取申请加入本公司的人员列表
#define PostQueryApplyingUsers @"AppUserCenter/PostQueryApplyingUsers?from=app"

//同意加入公司
#define PostAllowApply @"AppUserCenter/PostAllowApply?from=app"
//拒绝加入公司
#define PostRefuseApply @"AppUserCenter/PostRefuseApply?from=app"

//根据公司名称 绝对匹配公司信息
#define PostQueryCompanyInfoByName @"AppCompanyRegist/PostQueryCompanyInfoByName?from=app"

//获取个人信息
#define PostQueryUserInfo @"AppUserCenter/PostQueryUserInfo?from=app"

//取消申请
#define PostCancelApply @"AppUserCenter/PostCancelApply?from=app"

//获取价格查询条件接口
#define HuoQuJiaGeChaXunTiaoJian @"AppPriceSearch/PostQueryPriceSearchCondition?from=app"

//价格查询接口
#define QueryPriceList   @"AppPriceSearch/QueryPriceList?from=app"

//最近七天价格走势接口
#define Query7DaysPriceDetail @"AppPriceSearch/QueryPriceDetail?from=app"

//求购-品类获取
#define PostQueryVarietyName @"AppPurchaseInfo/PostQueryVarietyName?from=app"

#define USERID @"USER_ID"//用户id

#define PUBLISHER @"Publisher"//判断是否是本机

#define ISCREATE @"iscreate"//判断用户是否已经注册公司

#define ISREGTYPE @"REGTYPE" //判断是否是主账号  10主  0不是主

#define kREGMOBILE @"REGMOBILE" //当前登录者手机号







